package com.acc.service;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

import com.acc.entity.Order;
import com.acc.entity.Standby;
/**
 * 
 * @author 姜伟康
 *
 */
public interface OrderService {
	
	
	//查询所有订单
    public List<Order> showAllOrder(Object...objects);
	
	//查询订单总数
	int selectOrderNum(String username) ;
	
	//创建订单
	boolean addOrder(String orderId ,String username,Integer standbyid);
	
	//支付订单
	boolean payOrder(String orderId);
	
	//取消订单
	boolean deleteOrder(String orderId) ;

	//改签
	boolean updateOrder(String orderId, Standby standby);
	
	//退票
	boolean returnOrder(String orderId) throws IOException, SQLException;

	//取票
	boolean takingOrder(String orderId) throws IOException, SQLException;
	
	
	


}
